{% extends 'wxchat/wxbase.html' %}{% load static %}{% load thumbnail %}
{% block container %}
<div class="weui-panel weui-panel_access">
    <div class="weui-panel__hd">
         <div class="weui-flex">
            <div><a href="javascript:window.history.back(-1)"><i class="icon iconfont icon-jiantou3 gray " ></i></a></div>
            <div class="weui-flex__item" style="text-align: center;"><span class="detail_title">宠物出售详情</span></div>
            <div ><a href="{% url 'dog-index' %}"><i class="icon iconfont icon-shouye2 pink r" ></i></a></div>
        </div>
    </div>
    <div class="weui-panel__bd">
    {% if object.picture %}
         <div class="detail_header"><img src="{{ object.picture.url }}" ></div>
    {% endif %}
        <div class="weui-form-preview">
            <div class="weui-form-preview__bd">
               <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">宠物类型:</label>
                    <span class="weui-form-preview__value">{{ object.get_pet_class_display }}</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">宠物品种:</label>
                    <span class="weui-form-preview__value">{{ object.typeid }}</span>
                </div>
                <div class="weui-form-preview__item">
                   <label class="weui-form-preview__label">宠物年龄:</label>
                   <span class="weui-form-preview__value">{{ object.ages|default_if_none:'' }}</span>
               </div>
                <div class="weui-form-preview__item">
                   <label class="weui-form-preview__label">宠物说明:</label>
                   <span class="weui-form-preview__value">{{ object.desc }}</span>
               </div>
               <div class="weui-form-preview__item">
                   <label class="weui-form-preview__label">价格区间:</label>
                   <span class="weui-form-preview__value">{{ object.price }}</span>
               </div>
                <div class="weui-form-preview__item">
                   <label class="weui-form-preview__label">主人姓名:</label>
                   <span class="weui-form-preview__value">{{ object.ownername }}</span>
               </div>
                <div class="weui-form-preview__item">
                   <label class="weui-form-preview__label">联系电话:</label>
                   <span class="weui-form-preview__value">{{ object.telephone }}</span>
               </div>
           </div>
        </div>
    </div>
</div>

{% endblock container %}

